Lock-Free Red-Black Trees Using CAS

نویسندگان

  • Jong Ho Kim
  • Helen Cameron
  • Peter Graham
چکیده

The negative side-effects of using lock-based synchronization mechanisms are well known and include unexpected scheduling anomalies such as priority inversion and convoying as well as unnecessary synchronization overhead and the potential for deadlock. Despite these drawbacks, the use of lock-free techniques has not gained widespread acceptance. The reasons for this lack of acceptance include the complexity of hand-crafting lock-free algorithms for complex data structures and the relative inefficiency of the algorithms resulting from the use of generic methods for converting sequential algorithms into lock-free concurrent ones. Given these factors, we believe that the best approach is to create a library of efficient lock-free data structures that can be easily employed by others. For such a library to be successful, however, it must be based on synchronization primitives that are generally available on a wide range of machine architectures. In this paper, we describe the implementation of efficient lock-free algorithms for operating on a type of balanced binary search tree — red-black trees. Such tree structures are of potential importance in a wide range of search-based applications (including text mining and nucleotide sequence matching) that are being implemented on shared memory parallel machines. Our algorithms require only the widely available CAS (Compare And Swap) synchronization primitive.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Techniques for Constructing Efficient Lock-free Data Structures

Techniques for Constructing Efficient Lock-free Data Structures Trevor Brown Doctor of Philosophy Graduate Department of Computer Science University of Toronto 2017 Building a library of concurrent data structures is an essential way to simplify the difficult task of developing concurrent software. Lock-free data structures, in which processes can help one another to complete operations, offer ...

متن کامل

Performance Analysis of Concurrent Red-Black Trees on HTM Platforms

In this paper we analyze the performance of concurrent redblack trees using two HTM implementations, Intel’s Transactional Synchronization Extensions (TSX) on Haswell processors and IBM’s Power8 HTM. We parallelize bottom-up and top-down red-black trees using coarse-grained transactions and evaluate their performance. Our experimental results show that HTM can outperform lock-based implementati...

متن کامل

Concurrent B-trees with Lock-free Techniques

B-trees and their variants are efficient data structures for finding records in a large collection (e.g., databases). The efficiency of B-trees increases when a number of users can manipulate the tree simultaneously. Many algorithms have been developed over the last three decades to achieve both concurrency and consistency in B-trees. However, current lock-based concurrency-control techniques l...

متن کامل

The Performance of Concurrent Red-Black Tree Algorithms

Relaxed balancing has become a commonly used concept in the design of concurrent search tree algorithms. The idea of relaxed balancing is to uncouple the rebalancing from the updating in order to speed up the update operations and to allow a high degree of concurrency. Many di erent relaxed balancing algorithms have been proposed, especially for red-black trees and AVL trees, but their performa...

متن کامل

Concurrent Wait-Free Red Black Trees

We present a new wait-free algorithm for concurrently accessing a red-black tree in an asynchronous shared memory system that supports search, insert, update and delete operations using single-word compare-and-swap instructions. Search operations in our algorithm are fast and execute only read and write instructions (and no atomic instructions) on the shared memory. The algorithm is obtained th...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2011